package net.apisp.quick.example.config;

import net.apisp.quick.ioc.annotation.Accept;
import net.apisp.quick.ioc.annotation.Factory;
import net.apisp.quick.template.T;
import org.beetl.core.Configuration;

import java.io.IOException;

@Factory
public class MvcConfig {

    @Accept
    public Configuration configuration() throws IOException {
        Configuration config = Configuration.defaultConfiguration();
        return  config;
    }

    @Accept("net.apisp.quick.template.T")
    public T template() {
         return TemplateKit.newT();
    }

}
